package com.ms.game.lobby.command;

import com.ms.game.slot.base.SlotGameGmToolAPI;
import com.ms.service.module.zone.command.BasicDebugCommand;

public class LobbyDebugCommand extends BasicDebugCommand {

	@Override
	public String execute() {
		@SuppressWarnings("unused")
		String type = commandValue[0];

		if (type.equals("superkick")) {
			String game = commandValue[1];
			String halltype = commandValue[2];
			int machineid = Integer.valueOf(commandValue[3]);

			// 撈取資料庫
			String seatid = null;

			if (seatid == null) {
				return "seatid is null with game=" + game + " halltype=" + halltype + " machineid =" + machineid;
			}

			SlotGameGmToolAPI.clearGameSeat(game, halltype, seatid, "", false);
		}
		return "success!";
	}

	@Override
	public String getName() {
		return "superkick";
	}

	@Override
	public String getDescription() {

		return "";
	}

	@Override
	public String getShortDescription() {

		return "nothing ....";
	}

}
